﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Yunzuan.Foundation.Web.Pages
{
    public class BaseNeedLoginPage : BasePage
    {
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            //TODO: 登录判断
            if (!this.IsLogin())
            {
                //TODO: 跳转到前台登录页面
                HttpContext.Current.Response.Write("跳转到前台登录页面");

                //扩展：如果是SSO站点，则跳转到认证中心(Passport)
            }
        }
    }
}
